<template>
  <transition name="fade">
    <div class="loading_container" v-show="show">
      <div class="loading_wrapper">
        <img src="../../../assets/loading.gif"/>
      </div>
    </div>
  </transition>
</template>

<script>
export default {
  // props:{
  //   show:{
  //     type:Boolean,
  //     default:false
  //   }
  // }
  data() {
    return {
      show:false
    };
  },
  methods:{
    close(){
      this.show = false;
    }
  }
};
</script>

<style scoped>
.loading_container {
  position: fixed;
  top: 40%;
  left: 50%;
  margin-left: -15vw;
  padding: 2vw;
  width: 100px;
  height: 100px;
  font-size: 4vw;
  color: #fff;
  text-align: center;
  /* background-color: rgba(0, 0, 0, 0.8);
  border-radius: 5vw; */
  z-index: 999;
}

.loading_wrapper
{
  width: 100%;
  height: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.loading_wrapper img
{
  width: 100%;
  height: 100%;
}

.fade-enter-active,
.fade-leave-active {
  transition: 0.3s ease-out;
}
.fade-enter {
  opacity: 0;
  transform: scale(1.2);
}
.fade-leave-to {
  opacity: 0;
  transform: scale(0.8);
}
</style>